<!-- #news -->
<article id="news" class="news">
    <div class="container">
        <h1 class="title-primary">News</h1>
        <div class="row">
            <?php if($list_news_count > 0): ?>
            
                <!-- .list-news -->
                <div class="col-md-8">
                    <!-- .list-news-wrap -->
                    <div class="list-blog-wrap">
                        <!-- News data will be load with AJAX and append on ul below -->
                        <ul class="list-blog" id="news_list"></ul>
                        <div id="pagination_news"></div>
                        <!-- News data -->
                    </div>
                    <!-- /.list-news-wrap -->
                </div>
                <!-- /.list-news -->
    
                <!-- .sidebar -->
                <div class="col-md-4 sidebar">
                    <!-- .search-widget -->
    				<div class="widget search-widget">
    					<div class="form-group input-group">
                            <input type="text" value="" id="search_news" name="search_news" placeholder="Search..." class="form-control" />
    						<button class="btn btn-primary input-addon" id="btn_search_news" style="padding: 3px 12px !important;">
    							<i class="glyphicon icon-search"></i>
    						</button>
    					</div>
    				</div>
    				<!-- /.search-widget -->
                
                    <!-- .archive-widget -->
                    <?php 
                        $this_year = date('Y');
                        if( !empty($list_news_archived) ){
                            echo '<div class="widget">';
                                echo '<span class="widget-title">Archives</span>';
                                echo '<ul class="list-default">';
                                    foreach($list_news_archived as $archive){
                                        echo '<li><a href="#" class="news_archive" title="'.$archive.'">'.$archive.' '.$this_year.'</a></li>';
                                    }
                                echo '</ul><hr />'; 
                            echo '</div>'; 
                        }
                    ?>
    				<!-- /.archive-widget -->
                </div>
                <!-- /.sidebar -->
            
            <?php else: ?>
            
                <div class="col-md-12">
                    <div class="show-more">
                        <div class="show-more-inner text-center">
                            <a href="#" class="btn-showmore btn btn-primary btn-sm disabled">No News</a>
                        </div>
                    </div>
                </div>
            
            <?php endif ?>
        </div>
    </div>
</article>
<!-- /#events -->